<link href="jvi.css" rel="stylesheet" type="text/css">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="fondocomprausados">
  <tr>
    <td><table width="785" border="0" align="center" cellpadding="0" cellspacing="0" class="contenidocontacto2">
      <tr>
        <td><table width="785" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><table width="785" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td><table width="785" border="0" align="center" cellspacing="0">
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><table width="785" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td class="tituloscamiones">&nbsp;</td>
                          <td width="5%" rowspan="4" class="separadorblanco">&nbsp;</td>
                          <td class="tituloscamiones">&nbsp;</td>
                          <td width="6%" rowspan="4" class="separadorblanco">&nbsp;</td>
                          <td>&nbsp;</td>
                          <td width="4%" rowspan="4" class="separadorblanco">&nbsp;</td>
                          <td class="tituloscamiones"><div align="right"></div></td>
                          </tr>
                        <tr>
                          <td width="19%" class="tituloscamionesgris">camiones y</td>
                          <td width="25%" class="tituloscamiones">acoplados y </td>
                          <td width="20%"><span class="tituloscamiones">carrocerías</span></td>
                          <td width="21%" class="tituloscamiones">otros</td>
                          </tr>
                        <tr>
                          <td class="tituloscamionesgris">utilitarios</td>
                          <td class="tituloscamiones">semiremolques</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          </tr>
                        <tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          </tr>
                        <tr>
                          <td class="textogris">usados</td>
                          <td>&nbsp;</td>
                          <td class="textos"><a href="/acoplados-remolques-0km/" class="submenu">0KM</a></td>
                          <td>&nbsp;</td>
                          <td class="textos"><a href="/carrocerias-0km/" class="submenu">0KM</a></td>
                          <td>&nbsp;</td>
                          <td class="textos"><a href="/otros-vehiculos/" class="submenu">otros vehiculos</a></td>
                          </tr>
                        <tr>
                          <td class="textos">&nbsp;</td>
                          <td>&nbsp;</td>
                          <td class="textos"><a href="/acoplados-remolques-usados/" class="submenu">usados</a></td>
                          <td>&nbsp;</td>
                          <td class="textos"><a href="/carrocerias-usados/" class="submenu">usados</a></td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          </tr>
                        </table>
                        <p><br />
                        </p></td>
                      </tr>
                    </table></td>
                </tr>
                </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
      <table width="800" border="0" align="center" cellspacing="0">
        <tr>
          <td bgcolor="#FFFFFF"><table width="100%" border="1" cellspacing="2" cellpadding="0">
            <tr>
              <?php
                                $i = 0;
                                $bgcolor = 0;
                                foreach ($camiones as $camion) { ?>
              <?php 
                                if($i == 0) {
                                    echo "<tr>";
                                }
                                if($bgcolor == 1) {
                                    $bgcolor = 0;
                                } else {
                                    $bgcolor = 1;
                                }
                                ?>
              <td width="34%" <?=($bgcolor)?"bgcolor='#D5D9DF'":""?>><div align="center">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><div align="center"><a href="/ficha/camiones/<?=$camion['idunidad']?>"><img src="<?=(count($camion['adjuntos']) > 0)?$camion['adjuntos'][0]['adjunto']:"/assets/lightbox2.04/images/close.gif"?>" width="162" height="120"  alt=""/></a></div></td>
                  </tr>
                  <tr>
                    <td><div align="center"></div></td>
                  </tr>
                  <tr>
                    <td><div align="center" class="textocamiones"><strong>
                      <?=$camion['marca'].' '.$camion['modelo']?>
                    </strong></div></td>
                  </tr>
                  <tr>
                    <td><div align="center" class="textocamiones"><strong>Año:
                      <?=$camion['anio']?>
                    </strong></div></td>
                  </tr>
                  <tr>
                    <td><div align="center" class="textocamiones"><?=($camion['reservado']==1)?"Reservado":"En Venta"?> </div></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                </table>
              </div></td>
              <?php 
                                    $i++;
                                    if($i == 3) {
                                        echo "</tr>";
                                        $i = 0;
                                    }
                                    
                                ?>
              <?php } ?>
            </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="barrabajo">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
